package cn.tedu.micro.repository;

import cn.tedu.micro.po.StudentEsPO;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.Date;
import java.util.List;

public interface StudentEsRepository extends ElasticsearchRepository<StudentEsPO,String>{

    List<StudentEsPO> findByName(String name);
    List<StudentEsPO> findByProfile(String profile);
    List<StudentEsPO> findByBirthdayBetween(Date start,Date end);
}
